package com.gxa.saas.portal.service.impl;

import com.gxa.saas.core.vo.UserOderVo;
import com.gxa.saas.portal.mapper.SelectOrderMapper;
import com.gxa.saas.portal.service.SelectOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: pengxtao
 * @Date: 2022/7/26下午7:04
 */
@Service
public class SelectOrderServiceImpl implements SelectOrderService {
    @Autowired
    private SelectOrderMapper selectOrderMapper;

    @Override
    public List<UserOderVo> selectUserOrder(String userId) {
        return this.selectOrderMapper.selectUserOrder(userId);
    }

    @Override
    public List<UserOderVo> selectStatusOrder(String userId, Integer value) {
        return this.selectOrderMapper.selectStatusOrder(userId,value);
    }

    @Override
    public List<UserOderVo> selectDetailsOrder(String oderId) {
        return this.selectOrderMapper.selectDetailsOrder(oderId);
    }
}
